<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/3/2
 * Time: 11:28
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait TrainContentTrait
{
    use BaseTrait;

    // ID
    protected $id;
    // 培训ID
    protected $train_id;
    // 文本内容
    protected $content_str;

    public function __construct(Request $request)
    {
        $this->id = $request->input('id', 0);
        $this->train_id = $request->input('train_id');
        $this->content_str = $request->input('content_str');
    }
}